//
//  MyIncomeHeadeDetailrView.m
//  Doctors
//
//  Created by 王森 on 16/4/14.
//  Copyright © 2016年 王森. All rights reserved.
//

#import "MyIncomeHeadeDetailrView.h"

@implementation MyIncomeHeadeDetailrView

- (instancetype)initWithFrame:(CGRect)frame{
    {
        self=[super initWithFrame:frame];
        
        if (self) {
            
            [[NSBundle mainBundle]loadNibNamed:@"MyIncomeHeadeDetailrView" owner:self options:nil];
            
            self.contentView.frame=CGRectMake(0, 0, SCREEN_WIDTH, 220);
            
            [self addSubview:self.contentView];
            
            
        }
        return self;
        
    }
    
}

-(void)fuZhi:(NSDictionary *)dic{

    self.brnYueShouRU.text=dic[@"monthAmt"];
    self.totalShouRU.text=dic[@"totalAmt"];
    self.benYueOrderCount.text=StringWithFormat(dic[@"monthNum"]);
    self.totalOrderCount.text=StringWithFormat(dic[@"totalNum"]);
    
    self.benYuSHouRuPaiMing.text=[NSString stringWithFormat:@"第%@名",dic[@"monthAmtRanking"]];
    self.zongShouRuPaiMing.text=[NSString stringWithFormat:@"第%@名",dic[@"totalAmtRanking"]];

    
    self.bntYueOrder.text=[NSString stringWithFormat:@"第%@名",dic[@"monthNumRanking"]];
    self.totalOrderPaiMing.text=[NSString stringWithFormat:@"第%@名",dic[@"totalNumRanking"]];
    
    
   }
@end
